package org.fast.develop.logicflow.management.core.event;


import org.fast.develop.logicflow.repository.domain.deployment.LogicDeployment;

/**
 * @author 莫寅
 * @createTime 2022-06-09 13:13
 * @desc：
 */
public class DeployedEvent implements LogicEvent<LogicDeployment, Object> {

    private LogicDeployment logicDeployment;

    private Object payload;

    public DeployedEvent(LogicDeployment logicDeployment) {
        this.logicDeployment = logicDeployment;
    }

    @Override
    public LogicDeployment getSource() {
        return logicDeployment;
    }

    @Override
    public Object getPayload() {
        return payload;
    }
}
